define([],function(){
    return {
        'btnPrintList:click' : function() {
            var rows = this.multipleSelection;
            var rukuIds = {};

            for(var k in rows){
                rukuIds[rows[k].rukuId] = rows[k].rukuId;
            }

            // 获取是否都符合要求
            var rowKeys = Object.keys(rukuIds);
            // dump(rowKeys);return;
            if(rowKeys){
                window.location.href = '?controller=Sample_Ruku&action=Print&id='+rowKeys.join(',');
            }else{
                this.$notify.error(`请先选择样品信息`);
            }
        },
    }
})